package com.chenfei.durid.service.impl;

import com.chenfei.durid.entity.Score;
import com.chenfei.durid.mapper.ScoreMapper;
import com.chenfei.durid.service.DuridService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author chenfei
 * @description
 * @since 2018/4/3
 */
@Service
public class DuridServiceImpl implements DuridService{

    @Autowired
    ScoreMapper scoreMapper;

    @Override
    public void addScore(){
        Score score1 = new Score();
        score1.setId(1);
        score1.setScore(11);
        scoreMapper.insert(score1);

        Score score2 = new Score();
        score2.setId(2);
        score2.setScore(22);
        scoreMapper.insert(score2);
    }
}
